<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <c:set value="${pageContext.request.contextPath}" var="path"></c:set>
    <script src="${path}/static/web/js/jquery-3.6.0.min.js"></script>
    <link href="${path}/static/web/css/MsgStyle.css" rel="stylesheet" type="text/css" />
    <script src="${path}/static/web/js/showParking.js"></script>
    <title>充值记录</title>
</head>
<body>
           <div class="div_container">
               <table style="margin: 50px auto;" id="pageListTable">
                   <thead>
                   <tr>
                       <th>时间</th>
                       <th>金额</th>
                       <th>余额</th>
                       <th>备注</th>
                       <th>停车区域</th>
                       <th>车牌号</th>
                   </tr>
                   </thead>
               <tbody id="pageListTableBody" >
               <c:forEach var="history" items="${requestScope.walletHistoryList}">
                   <tr>
                       <td>${history.time}</td>
                       <td>${history.money}</td>
                       <td>${history.remainderMoney}</td>
                       <td>${history.beiZhu}</td>
                       <td>${history.parking.region}</td>
                       <td>${history.car.license}</td>
                   </tr>
               </c:forEach>
               </tbody>
               <tfoot>
               <tr><td colspan="6">
                   <div id="pages">
                       <span id="spanFirst">首页</span>
                       <span id="spanPre">上一页</span>
                       <span id="spanNext">下一页</span>
                       <span id="spanLast">尾页</span>
                       第<strong id="spanPageNum"></strong>页/共
                       <strong id="spanTotalPage"></strong>页
                   </div>
               </tfoot>
               </table>
           </div>
</body>
</html>
